<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript"> 
function ErregistratuBezeroa(){
	pass1 = document.formularioa.pasahitza.value;
		pass2 = document.formularioa.pasahitza2.value;
	
	if ((document.formularioa.emaila.value == "") || (document.formularioa.pasahitza.value == "") || (document.formularioa.pasahitza2.value == "") || (document.formularioa.visa.value == "")) {
			alert (' beharrezko eremuak bete behar dira!');
			return 0;
		}
	if (pass1 != pass2) {
		alert('Pasahitza berdina izan behar du');
		return 0;
	}

	

	document.formularioa.action = "../php/bezeroBerria.php";
	document.formularioa.method = "POST";
	document.formularioa.submit();


	return 1;


}

</script>
<title>Bezeroa Erregistratu</title>
</head>
<body>

	<form name="formularioa" action="bezeroBerria.php" method="POST">

		<p>
		<fieldset style="border-color: #FF0000; width: 550">
			<legend> Bezeroa Erregistratu </legend>
			<table>

				<tr>
					<td>emaila*:</td>
					<td><input type="text" name="emaila" value=""></td>
				</tr>
				<tr>
					<td>Pasahitza*:</td>
					<td><input type="password" name="pasahitza" value="">
					</td>
				</tr>
				<tr>
					<td>Pasahitza errepikatu*:</td>
					<td><input type="password" name="pasahitza2" value="">
					</td>
				</tr>
				<tr>
					<td>Izena:</td>
					<td><input type="text" name="izena" value=""></td>
				</tr>
				<tr>
					<td>Abizena:</td>
					<td><input type="text" name="abizena" value=""></td>
				</tr>
				<tr>
					<td>Ezizena</td>
					<td><input type="text" name="ezizena" value=""></td>
				</tr>

				<tr>
					<td>Hiria:</td>
					<td><input type="text" name="Hiria" value=""></td>
				</tr>
				<tr>
					<td>PostaKodea:</td>
					<td><input type="text" name="postakodea" value=""></td>
				</tr>
				<tr>
					<td>VisaZenbakia*:</td>
					<td><input type="text" name="visa" value=""></td>
				</tr>


			</table>
		</fieldset>
		</p>
		<input type="button" name="OK" value="OK"
			onclick="ErregistratuBezeroa();">




	</form>
</body>
</html>